﻿<%@ Page Language="C#" MasterPageFile="~/giaovien/Manager3.master" AutoEventWireup="true"
    CodeFile="TrangBangDiemMonHoc.aspx.cs" Inherits="giaovien_TrangBangDiemMonHoc"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head1" runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                    Bảng điểm môn học
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber"> Năm học </span>
                    <asp:DropDownList runat="server" ID="drNamHoc" CssClass="DieuKhien" Width="120px"
                        AutoPostBack="True"></asp:DropDownList>
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber"> Học kỳ </span>
                    <asp:RadioButton runat="server" ID="rdoKyI" Checked="true" GroupName="HocKy" />I&nbsp;&nbsp;
                    <asp:RadioButton runat="server" ID="rdoKyII" GroupName="HocKy" />II
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Lớp học </span>
                    <asp:DropDownList runat="server" ID="drLopHoc" Width="120px" CssClass="DieuKhien"></asp:DropDownList>
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Môn học </span>
                    <asp:DropDownList runat="server" ID="drMonHoc" Width="120px" CssClass="DieuKhien"></asp:DropDownList>
                </div>
                <div>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                       Trạng thái bảng điểm: <asp:Label runat="server" ID="lblTrangThai" ForeColor="Red" Font-Size="17px"></asp:Label>
                </div>
                <div style="width:100%;">
                     <asp:GridView ID="grvNhapDiem" runat="server" AutoGenerateColumns="False" Width="100%" PageSize="50"
                        ForeColor="#333333" 
                        AllowPaging="True" Height="28px" ShowFooter="True" 
                         onselectedindexchanged="grvNhapDiem_SelectedIndexChanged">
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:TemplateField HeaderText="STT">
                                <ItemTemplate>
                                    <%# Container.DataItemIndex + 1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Mã học sinh" SortExpression="MaHS">
                                <ItemTemplate>
                                    <asp:Label ID="lblMaHS" runat="server" Text='<%#Bind("MaHS") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên học sinh" SortExpression="TenHS">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblTenHS" Text='<%#Bind("TenHS") %>'>' Visible="false"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="M1" SortExpression="DiemMieng1">
                                <ItemTemplate>
                                    <asp:Label ID="lblMieng1" runat="server" Width="30px" Text='<%#Bind("DiemMieng1") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="M2" SortExpression="DiemMieng2">
                                <ItemTemplate>
                                    <asp:Label ID="lblMieng2" runat="server" Width="30px" Text='<%#Bind("DiemMieng2") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="M3" SortExpression="DiemMieng3">
                                <ItemTemplate>
                                    <asp:Label ID="lblMieng3" runat="server" Width="30px" Text='<%# Bind("DiemMieng3") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="M4" SortExpression="DiemMieng4">
                                <ItemTemplate>
                                    <asp:Label ID="lblMieng4" runat="server" Width="30px" Text='<%# Bind("DiemMieng4") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="M5" SortExpression="DiemMieng5">
                                <ItemTemplate>
                                    <asp:Label ID="lblMieng5" runat="server" Width="30px" Text='<%# Bind("DiemMieng4") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="15'1" SortExpression="Diem15_1">
                                <ItemTemplate>
                                    <asp:Label ID="lblDiem15_1" runat="server" Width="30px" Text='<%#Bind("Diem15_1") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="15'2" SortExpression="Diem15_2">
                                <ItemTemplate>
                                    <asp:Label ID="lblDiem15_2" runat="server" Width="30px" Text='<%#Bind("Diem15_2") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="15'3" SortExpression="Diem15_3">
                                <ItemTemplate>
                                    <asp:Label ID="lblDiem15_3" runat="server" Width="30px" Text='<%#Bind("Diem15_3") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="15'4" SortExpression="Diem15_4">
                                <ItemTemplate>
                                    <asp:Label ID="lblDiem15_4" runat="server" Width="30px" Text='<%#Bind("Diem15_4") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="15'5" SortExpression="Diem15_5">
                                <ItemTemplate>
                                    <asp:Label ID="lblDiem15_5" runat="server" Width="30px" Text='<%#Bind("Diem15_5") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="45'1" SortExpression="Diem45_1">
                                <ItemTemplate>
                                    <asp:Label ID="lblDiem45_1" runat="server" Width="30px" Text='<%#Bind("Diem45_1") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="45'2" SortExpression="Diem45_2">
                                <ItemTemplate>
                                    <asp:Label ID="lblDiem45_2" runat="server" Width="30px" Text='<%#Bind("Diem45_2") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="45'3" SortExpression="Diem45_3">
                                <ItemTemplate>
                                    <asp:Label ID="lblDiem45_3" runat="server" Width="30px" Text='<%#Bind("Diem45_3") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="45'4" SortExpression="Diem45_4">
                                <ItemTemplate>
                                    <asp:Label ID="lblDiem45_4" runat="server" Width="30px" Text='<%#Bind("Diem45_4") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="HK" SortExpression="DiemThi">
                                <ItemTemplate>
                                    <asp:Label ID="lblDiemThi" runat="server" Width="30px" Text='<%#Bind("DiemThi") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="TBM" SortExpression="DTBMonHocKy">
                                <ItemTemplate>
                                    <asp:Label ID="lblTBM" runat="server" Width="30px" Text='<%#Bind("DTBMonHocKy") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                           
                        </Columns>
                        <PagerStyle BackColor="#E4ECEF"  HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#9999ff" Font-Bold="True"  BorderColor="Blue"
                            Height="30px" />
                    </asp:GridView>
                </div>
                <div style="margin-left:50px">
                     <asp:Button runat="server" ID="btnGuiBangDiem" CssClass="button_150" 
                                        Text="Gửi bảng điểm" onclick="btnGuiBangDiem_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btnHienThi" 
                        Text="Hiển thị" CssClass="button_150" onclick="btnHienThi_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                    
                    <asp:Button runat="server" ID="btnXuatExcel" Text="Xuất ra excel" 
                        CssClass="button_150" onclick="btnXuatExcel_Click" />
               
                </div>
            </div>
        </div>
    </div>
</asp:Content>
